<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
     
 </body>
  <script>
      var n = prompt("请输入一个整数");
      var arr = [];
	  arr = n.split("");
	  var str = arr.reverse().join("");
      console.log(parseInt(str));

	  var money = parseInt(prompt("请输入金额"));
	  var year = parseInt(prompt("请输入要存储的年限"));
	  for(var i = 0;i < year;i++){
	      money = money + (money * 0.005);  
	  }
	  console.log(money);

 </script>
</html>
